<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
  <meta name="generator" content="notepad">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="description" content="<?php echo input(strip_tags($conf['Pavadinimas']).' - '.trimlink(strip_tags($conf['Apie']),120)); ?>">
  <meta name="keywords" content="<?php echo input(strip_tags($conf['Keywords'])); ?>">
  <meta name="author" content="<?php echo input(strip_tags($conf['Copyright'])); ?>">
  <link rel="stylesheet" type="text/css" href="stiliai/<?php echo input(strip_tags($conf['Stilius'])); ?>/default.css">
  <link rel="stylesheet" type="text/css" href="stiliai/system.css">
  <link rel="shortcut icon" href="favicon.ico" />
  
  <title><?php echo input(strip_tags($conf['Pavadinimas']).' - '.$page); ?></title>
  
  <script language="javascript" type="text/javascript" src="javascript/swfobject.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/scriptaculous/lib/prototype.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/scriptaculous/src/scriptaculous.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/pagrindinis.php"></script>
  
  <?php if ($id == 46 || $id == 8) { ?>
  <script language="javascript" type="text/javascript" src="javascript/htmlarea/tiny_mce/tiny_mce.js"></script>
  <?php } ?>
</head>

<body>
<NOSCRIPT>
 <?php klaida("Klaida","Prašome įjunkite javascript palaikymą"); ?>
 <meta http-equiv="refresh" content="0;url=javascript.html">
</NOSCRIPT>

<script language="javascript" type="text/javascript" src="javascript/hl/shCore.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushPhp.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushJScript.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushSql.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushXml.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushCss.js"></script>

  <!--Visu punktu, bloku, pastraipu galima laisvai prideti kiek nori-->

  <div class="container">
    <!--Visas duomenu konteineris, iskyrus titulini pav.-->

    <div class="top">
      <!--Tiklalapio virsus-->
      <a href="?"><span><?php echo input(strip_tags($conf['Pavadinimas'])); ?></span></a>
    </div>

    <div class="header"></div><!--Galimybe rasyti ant paveiksliuko-->
	 <div class="main"> <!--Kaire dalis - Naujienu rasymas-->

		<?php 
		if (isset($strError) && !empty($strError)) { klaida("Klaida",$strError); }
		if (is_file($page.".php")) { include($page.".php"); } else { include('puslapiai/klaida.php'); }
		?>

     </div>

    <div class="navigation">
      <!--Dešinė meniu pusė-->
			<?php
			$sql_p = mysql_query1("SELECT SQL_CACHE * FROM `".LENTELES_PRIESAGA."panel` ORDER BY `place` ASC");
			while ($row_p = mysql_fetch_assoc($sql_p)) {
				if (is_file("paneles/".$row_p['file'])) { 
				include ("paneles/".$row_p['file']);
					if (!isset($title)) { $title = $row_p['panel']; }
					if ($row_p['show'] == 'Y' && isset($text) && !empty($text)) {
						lentele_r($title,$text); unset($title,$text);
					}
					elseif (isset($text) && !empty($text)) { 
						echo $text;
						unset($text);
					}
				}
				else { echo lentele_r("Klaida","Tokios paneles nera",$row_p['file']); }
			}
			unset($sql_p,$row_p);
			?>
	</div>
    <div class="clearer"></div>

    <div class="footer">
      <span class="left">
			<?php copyright($conf['Copyright']);?>
		</span>
<span class="right">Dizainas: <a href="http://arcsin.se">Arcsin</a></span>

      <div class="clearer"></div>
    </div>
  </div>
<script class="javascript">dp.SyntaxHighlighter.HighlightAll('code');</script>
<script language="javascript" src="javascript/boxover.js" type="text/javascript"></script>
</body>
</html>
